package com.itheima.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.itheima.dao.UserMapper;
import com.itheima.pojo.User;

@RestController
public class MybatisController {
	
	@Autowired
	private UserMapper userMapper;
	
	@GetMapping("/user/list")
	public List<User> findAll(){
		return userMapper.queryUserList();
	}

}
